<?
if(!session_id()) session_start();
if(!isset($_SESSION["session_message"])){
	$_SESSION["session_message"] = "";
}	
$session_login = "log";
$session_act = "act";

if(isset($_GET['page'])){
	$page = $_GET['page'];
}
if(isset($_REQUEST[$session_act])){
	if ($_REQUEST[$session_act]=='logout'){
		$_SESSION[$session_login] = "";
		unset($_SESSION[$session_login]);	
	}
}
if(!isset($_SESSION[$session_login])){
	if($_SESSION[$session_login] == ""){
		header("Location: login.php");
	}
}

require("../config.php");
require("../common_start.php");
include("../lib/func.lib.php");

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Hệ quản trị nội dung hệ thống</title>
<link rel="stylesheet" type="text/css" href="css/stylehome.css">
<link rel="icon" href="favicon.png">
<link title="win2k-cold-1" media="all" href="images/calendar-system.css" type="text/css">
<link href="ckeditor/_samples/sample.css" rel="stylesheet" type="text/css">
<link href="../lib/cssAdmin.css" rel="stylesheet" type="text/css">
<script language="javascript" src="css/menu.js"></script>
<script language="javascript" src="../lib/javascript.lib.js"></script>
<script language="javascript" src="images/calendar.js"></script>
<script language="javascript" src="images/calendar-en.js"></script>
<script language="javascript" src="images/calendar-setup.js"></script>

<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script src="ckeditor/config.js" type="text/javascript"></script>
<script src="ckfinder/ckfinder.js" type="text/javascript"></script>
</head>
<body>
<div id="wrapper">
  <div id="header">
    <div id="logo">
    	<? include("panel_Top.php")?>
    </div>
  </div>
  <!--begin content-->
  <div id="content">
    <div id="contentleft">
      <div id="menu"> <span>&nbsp; &nbsp;menu chức năng</span> </div>
      <? include("panel_Left.php")?>
    </div>
    <!--right content-->
    <div id="contentrightscrollbox">
      <div id="main-menu">
        <div id="addnew"> Welcome to khohangtot.com.vn &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        	<? include("processTitle.php")?>
        </div>
        <div id="thoat"> <span class="icon-user">
          <button class="btn-text">Hello <?=$_SESSION['log']?></button>
          </span>| <span class="icon-lock"><a href="./?act=logout">Thoát</a></span> </div>
      </div>
      <!--begin main content-->
      <div id="main-content">
      	<? include("processFrame.php")?>
      </div>
      <!--end main content--> 
    </div>
    <!--End right content--> 
  </div>
  <!--end content-->
  <div id="footer" class="border-shadow"> 
  	<? 
	include("panel_Bottom.php")?> 
  </div>
</div>
</body>
</html>
<? require("../common_end.php") ?>